
'
' *  NHibernate 代码模版
' 

Imports System.Collections.Generic
Imports System.ComponentModel

Namespace NCS
	''' <summary>
	'''	
	''' </summary>
	<Serializable()> _
	Public Class curveXishu

		'public event PropertyChangedEventHandler PropertyChanged;
		'protected void OnPropertyChanged(string name)
		'{
		'    PropertyChangedEventHandler handler = PropertyChanged;
		'    if (handler != null)
		'    {
		'        handler(this, new PropertyChangedEventArgs(name));
		'    }
		'}

		#Region "构造方法"
		Public Sub New()
			m_ID = 0
			m_methodid = 0
			m_x0 = 0
			m_x1 = 0
			m_x2 = 0
			m_x3 = 0
			m_ele = Nothing
			m_xadd = 0
			m_r = 0
			m_fitMode = 0
			m_cishu = 0
			m_stderr = 0
			m_LINExishu = 0
			m_calcmode = 0
			m_useXiaoZheng = 0
			m_dxielv = 0
			m_djieju = 0
			m_UseInt = False
			m_cmin = 0
			m_cmax = 0
			m_blankarea = 0
            m_must00 = False
            m_bjsp = 0
            m_panju = 0
		End Sub
		#End Region


#Region "私有变量"
        'Private m_curveDataList As IList(Of curveData)
        Private m_curveDataList As IList(Of curveData) = New List(Of curveData)()
        Private m_ID As Integer
        Private m_methodid As Integer
        Private m_x0 As Double
        Private m_x1 As Double
        Private m_x2 As Double
        Private m_x3 As Double
        Private m_ele As String
        Private m_xadd As Double
        Private m_r As Double
        Private m_fitMode As Integer
        Private m_cishu As Integer
        Private m_stderr As Double
        Private m_LINExishu As Double
        Private m_calcmode As Short
        Private m_useXiaoZheng As Short
        Private m_dxielv As Double
        Private m_djieju As Double
        Private m_UseInt As Boolean
        Private m_cmin As Double
        Private m_cmax As Double
        Private m_blankarea As Double
        Private m_must00 As Boolean
        Private m_method As method
        Private m_bjsp As Double
        Private m_panju As Double

#End Region


#Region "公有属性"
        Public Overridable Property curveDataList() As IList(Of curveData)
            Get
                Return m_curveDataList
            End Get
            Set(ByVal value As IList(Of curveData))
                m_curveDataList = value
            End Set
        End Property
        Public Overridable Property ID() As Integer
            Get
                Return m_ID
            End Get
            Set(ByVal value As Integer)
                m_ID = value
            End Set
        End Property
        '''<summary>
        '''
        '''</summary>
        Public Overridable Property methodid() As Integer
            Get
                Return m_methodid
            End Get
            Set(ByVal value As Integer)
                m_methodid = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property bjsp() As Double
            Get
                Return m_bjsp
            End Get
            Set(ByVal value As Double)
                m_bjsp = value
            End Set
        End Property
        Public Overridable Property panju() As Double
            Get
                Return m_panju
            End Get
            Set(ByVal value As Double)
                m_panju = value
            End Set
        End Property

        Public Overridable Property x0() As Double
            Get
                Return m_x0
            End Get
            Set(ByVal value As Double)
                m_x0 = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property x1() As Double
            Get
                Return m_x1
            End Get
            Set(ByVal value As Double)
                m_x1 = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property x2() As Double
            Get
                Return m_x2
            End Get
            Set(ByVal value As Double)
                m_x2 = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property x3() As Double
            Get
                Return m_x3
            End Get
            Set(ByVal value As Double)
                m_x3 = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property ele() As String
            Get
                Return m_ele
            End Get
            Set(ByVal value As String)
                m_ele = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property xadd() As Double
            Get
                Return m_xadd
            End Get
            Set(ByVal value As Double)
                m_xadd = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property r() As Double
            Get
                Return m_r
            End Get
            Set(ByVal value As Double)
                m_r = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property fitMode() As Integer
            Get
                Return m_fitMode
            End Get
            Set(ByVal value As Integer)
                m_fitMode = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property cishu() As Integer
            Get
                Return m_cishu
            End Get
            Set(ByVal value As Integer)
                m_cishu = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property stderr() As Double
            Get
                Return m_stderr
            End Get
            Set(ByVal value As Double)
                m_stderr = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property LINExishu() As Double
            Get
                Return m_LINExishu
            End Get
            Set(ByVal value As Double)
                m_LINExishu = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property calcmode() As Short
            Get
                Return m_calcmode
            End Get
            Set(ByVal value As Short)
                m_calcmode = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property useXiaoZheng() As Short
            Get
                Return m_useXiaoZheng
            End Get
            Set(ByVal value As Short)
                m_useXiaoZheng = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property dxielv() As Double
            Get
                Return m_dxielv
            End Get
            Set(ByVal value As Double)
                m_dxielv = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property djieju() As Double
            Get
                Return m_djieju
            End Get
            Set(ByVal value As Double)
                m_djieju = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property UseInt() As Boolean
            Get
                Return m_UseInt
            End Get
            Set(ByVal value As Boolean)
                m_UseInt = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property cmin() As Double
            Get
                Return m_cmin
            End Get
            Set(ByVal value As Double)
                m_cmin = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property cmax() As Double
            Get
                Return m_cmax
            End Get
            Set(ByVal value As Double)
                m_cmax = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property blankarea() As Double
            Get
                Return m_blankarea
            End Get
            Set(ByVal value As Double)
                m_blankarea = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property must00() As Boolean
            Get
                Return m_must00
            End Get
            Set(ByVal value As Boolean)
                m_must00 = value
            End Set
        End Property

        '''<summary>
        '''
        '''</summary>
        Public Overridable Property method() As method
            Get
                Return m_method
            End Get
            Set(ByVal value As method)
                m_method = value
            End Set
        End Property

#End Region

		#Region "Rewrite Equals and HashCode"
		''' <summary>
		''' 
		''' </summary>
		Public Overloads Overrides Function Equals(obj As Object) As Boolean
			If Me Is obj Then
				Return True
			End If
			If (obj Is Nothing) OrElse (obj.[GetType]() IsNot [GetType]()) Then
				Return False
			End If
			Dim castObj As curveXishu = DirectCast(obj, curveXishu)
			Return (castObj IsNot Nothing) AndAlso (m_methodid = castObj.methodid) AndAlso (m_ele = castObj.ele)
		End Function
		''' <summary>
		''' 用唯一值实现GetHashCode
		''' </summary>
		Public Overloads Overrides Function GetHashCode() As Integer
			Dim hash As Integer = 57
			hash = 27 * hash * m_methodid.GetHashCode()
			hash = 27 * hash * m_ele.GetHashCode()
			Return hash
		End Function
#End Region
    End Class
End Namespace
